package com.example.daojia.frametest.Interface;

import java.util.HashMap;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by zhangbin on 2018/7/25.
 */

public interface MyApi {
    /**
     * 登录接口
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("api/ps/driverlogin")
    Observable<String> goLogin(@FieldMap HashMap<String,String> params);

    @GET("mockjsdata/11/api/suyun/driver/drivercenter/workmsg")
    Observable<String> getDriver(@Query("driverId") String id);
}
